package com.example.demo.pojo.vo;

import com.example.demo.pojo.entity.QuestionCategory;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 题型的信息返回
 * @author 21172
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QuestionCategoryVO {
    private String categoryName;
    private int number;
    private int categoryId;
    public void initVO(QuestionCategory questionCategory){
        this.categoryName=questionCategory.getName();
        this.categoryId=questionCategory.getId();
    }
}
